@extends('layouts.default')

@section('content')
    <header class="sponsored-ad">
        <section id="content">
            <form role="form" method="POST" action="{{ url('/auth/login') }}">
                <h1>Sign In</h1>
                @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <strong>Whoops!</strong> There were some problems with your input.<br><br>
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif

                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                <div>
                    <input type="email" placeholder="Email" name="email" required="" id="email" />
                </div>
                <div>
                    <input type="password" placeholder="Password" name="password" required="" id="password" />
                </div>
                <div>
                    <input type="submit" value="Log in" />
                    <a href="/password/email">Lost your password?</a>
                    <a href="/auth/register">Register</a>
                </div>
            </form><!-- form -->

        </section><!-- content -->
    </header>
@endsection
